<div class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
 <?= form_open('user/tasks/update_note/')?>
  <div class="modal-header">
  <button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
    <h3 id="myModalLabel">Update</h3>
  </div>
  <div class="modal-body">
  <input type="hidden" name="task_id" value="<?php echo $task_id;?>" /> 
  <input type="hidden" name="note_id" value="<?php echo $notes->id;?>" />
 <select id="note_type" name="note_type" <?php if($this->ion_auth->is_client()){?> style="display:none;" <?php }?> >
<option value="0" <?php if($notes->note_type == 0){echo 'selected';} ?> >Public Comment</option>	
<option value="1" <?php if($notes->note_type == 1){echo 'selected';} ?> >Private Comment</option>
<option value="2" <?php if($notes->note_type == 2){echo 'selected';} ?> >Client Question</option>
</select> 
  <textarea name="note" class="span4"><?php echo strip_tags($notes->note);?></textarea>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
    <button class="btn btn-info" type="submit">Save changes</button>
  </form>
  </div>
</div>